﻿using PetaPoco;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;

namespace BlazorAdmin.Models
{
    [PrimaryKey("ID")]
    [TableName(nameof(DeviceOrg))]
    public class DeviceOrg
    {
        [NotNull]
        [DisplayName("主键")]
        public int ID { get; set; }

        [NotNull]
        [DisplayName("设备ID")]
        public int DeviceID { get; set; }

        [NotNull]
        [DisplayName("组织代码")]
        public string OrgCode { get; set; }
    }
}
